﻿package com.element.movieClip 
{
	import com.element.BtnMenu;
	import com.element.ClipMenu;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.geom.Point;
	
	/**
	 * 放在地图上的房子,就是该类
	 * @author zhengzihua
	 */
	public class ClipHouseParticle1 extends ClipHouse1 implements IShowMenu
	{
		private var clipMenu:ClipMenu;
		private var menuArr:Array=["move","del"]
		public function ClipHouseParticle1() 
		{
			init(1, 1, 1, 1, "3002");
		}
		
		public function showMenu():void {
			if(clipMenu==null){
				clipMenu = ClipMenu.getInstance();
				clipMenu.reformLayout(menuArr);
			}
			parent.parent.addChild(clipMenu);//mainStage
			clipMenu.obj = this;
			clipMenu.x = this.x + 90;
			clipMenu.y = this.y - 20;
		}
		public function hideMenu():void {
		}
	}
	
}